<?php
class model_meta extends lib_db_model {
	/**
	 * model 对应的 table
	 */
	public $_table='metas';
	
	public $_field=array(
		'id'=>array(
			'$fieldName'=>'id'
		),
		'name'=>array(-
			'$fieldName'=>'name'
		),
		'slug'=>array(-
			'$fieldName'=>'slug'
		),
		'type'=>array(
			'$fieldName'=>'type'
		),
		'parent'=>array(
			'$fieldName'=>'parent'
		),
		'description'=>array(
			'$fieldName'=>'description'
		),
		'count'=>array(
			'$fieldName'=>'count'
		),
		'order'=>array(
			'$fieldName'=>'order'
		),
	);
/**
 * 
CREATE TABLE IF NOT EXISTS `metas` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(200) default NULL,
  `slug` varchar(200) default NULL,
  `type` varchar(32) NOT NULL,
  `description` varchar(200) default NULL,
  `count` int(10) unsigned default '0',
  `order` int(10) unsigned default '0',
  PRIMARY KEY  (`id`),
  KEY `slug` (`slug`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 转存表中的数据 `metas`
--

INSERT INTO `metas` (`id`, `name`, `slug`, `type`, `description`, `count`, `order`) VALUES
(1, '无分类', 'default', 'category', NULL, 0, 0);
 * 
 */
}
